package com.xingkeduo.dao;

import org.apache.ibatis.annotations.Param;

import com.xingkeduo.model.po.TMarketing;

public interface TMarketingMapperSpec {

	TMarketing selectMarketingByPrimaryKey(Long id);
	
	int updateMarketingInventoryOriginQuantity(@Param("marketingId") Long marketingId, @Param("marketingType") Integer marketingType, @Param("quantity") Integer quantity);
	
	int updateMarketingInventorySubQuantity(@Param("marketingId") Long marketingId, @Param("marketingType") Integer marketingType, @Param("subQuantity") Integer subQuantity);

}